.data-processing-dag-node {
  display: flex;
  align-items: center;
  .main-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 12px;
    width: 180px;
    height: 48px;
    color: rgba(0, 0, 0, 65%);
    font-size: 12px;
    font-family: PingFangSC;
    background-color: #fff;
    box-shadow: 0 -1px 4px 0 rgba(209, 209, 209, 50%), 1px 1px 4px 0 rgba(217, 217, 217, 50%);
    border-radius: 2px;
    border: 1px solid transparent;
    &:hover {
      border: 1px solid rgba(0, 0, 0, 10%);
      box-shadow: 0 -2px 4px 0 rgba(209, 209, 209, 50%), 2px 2px 4px 0 rgba(217, 217, 217, 50%);
    }
  }
}

// 节点类型icon
.main-info {
  display: flex;
  align-items: center;
  .node-logo {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
  }

  .node-name {
    overflow: hidden;
    display: inline-block;
    width: 70px;
    margin-left: 6px;
    color: rgba(0, 0, 0, 65%);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

// 节点状态信息
.status-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  .status-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
  }

  .status-icon-error {
    background: url('./assets/error.png')
      no-repeat center center / 100% 100%;
  }

  .status-icon-success {
    background: url('./assets/success.png')
      no-repeat center center / 100% 100%;
  }
  .more-action-container {
    margin-left: 12px;
    width: 15px;
    height: 15px;
    text-align: center;
    cursor: pointer;
    .more-action {
      display: inline-block;
      width: 3px;
      height: 15px;
      background: url('./assets/more.png')
        no-repeat center center / 100% 100%;
    }
  }
}

.plus-dag {
  visibility: hidden;
  position: relative;
  margin-left: 12px;
  height: 48px;
  .plus-action {
    position: absolute;
    top: calc(48px / 2 - 8px);
    left: 10px;
    width: 16px;
    height: 16px;
    background: url('./assets/add.png')
      no-repeat center center / 100% 100%;
    cursor: pointer;
  }
  &:hover {
    background-image: url('./assets/add-hover.png');
  }

  &:active,
  .plus-action-selected {
    background-image: url('./assets/add-active.png');
  }
}

.x6-node-selected .main-area {
  border-color: #3471f9;
}

.x6-node-selected .plus-dag {
  visibility: visible;
}

.each-sub-menu {
  display: flex;
  align-items: center;
  padding: 3px 12px;
  cursor: pointer;
  &:hover {
    // background-color: rgba(0, 0, 0, 4%);
  }
}

.each-sub-menu a {
  display: inline-block;
  width: 100%;
  height: 16px;
  font-family: PingFangSC;
  font-weight: 400;
  font-size: 12px;
  color: rgba(0, 0, 0, 65%);
}

.each-sub-menu span {
  margin-left: 8px;
  vertical-align: top;
}

.each-disabled-sub-menu a {
  cursor: not-allowed;
    color: rgba(0, 0, 0, 35%);
}

.node-mini-logo {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  vertical-align: top;
}

@keyframes running-line {
  to {
    stroke-dashoffset: -1000;
  }
}
